package edu.spec.lyq.week08.class2.home;

/**
 * \* User: 11028
 * \* Date: 2018/10/22
 * \* Time: 19:56
 * \* Description:
 */
/*10）建立测试类ThrougthWinter，ThrougthWinter类里有如下方法
private String winterCome(IHibernate hibernate){
    return hibernate.hibernate();
}

11)寒冬将至，动物们准备冬眠了。在ThrougthWinter的main方法里，分别构造一个北极熊和一个青蛙对象，分别将2个对象作为参数传递到winterCome方法里，运行之。观察是否合理以及输出。*/
public class ThrougthWinter {
    private String winterCome(IHibernate hibernate){
        return hibernate.hibernate();
    }
    public static void main(String[] args) {
        Bear b = new Bear("北极熊","鱼","北极",3);
        Frog f = new Frog("青蛙","蝗虫","田","两栖");
        //System.out.println(b.winterCome(b));
        //System.out.println(f.winterCome(f));
        ThrougthWinter tw = new ThrougthWinter();
        tw.winterCome(b);
        tw.winterCome(f);
    }
}
